<?php
//http://ww2.mypeoplemaps.com/Video/videosalespeople.html?lf1=34116875f31383344589b427972
$token = "34116875F31383344589b427972";
$tokenArray = preg_split("/[a-z]+/i", $token);
var_dump($tokenArray);
//$tokenArray[0] = "sss";
if(count($tokenArray) < 3 || !is_numeric($tokenArray[0])) {
        echo "'{$tokenArray[0]}' is NOT numeric", PHP_EOL;
} else {
        echo "'{$tokenArray[0]}' is  numeric", PHP_EOL;
}
//34116875
$campId = $tokenArray[0];
$campId = substr ($campId,3, strlen($campId));
print_r($campId);
echo "\r\n\r\n";
//31383344589
$lf1ContactId = $tokenArray[1];
$lf1ContactId = substr ($lf1ContactId,4, strlen($lf1ContactId));
print_r($lf1ContactId);

http://localhost/ef1/preview_campaign.php?lf1=3416268a3138453881b427972
//Decode the campaign_token in the visit and save it in the public variables
//campaignId = Long.parseLong(codeParts[0].substring(3));
//userId = Long.parseLong(codeParts[1].substring(4));
//urlId = Long.parseLong(codeParts[2].substring(0, codeParts[2].length() - 2));
		
//select id,id_user,body from creleases where id = (select  ef1_campaign_id from ef1_lf1_campaign where lf1_campaign_id =8493);
//select email from  piwik.contact_table where id=4532;
//select * from snd_users where id_user  =39  and email1= 'testtest4515@testmailer111.com';


function getRandomChar(){
		$letter_array = array("a","b","c","d","e","f","g", "h",
		"i","j","k","l","m","n","o","p","q","r","s","t"
		,"u","v","w","x","y","z","A","B","C","D","E","F","G",
		"H","I","J","K","L","M","N","O","P","Q","R","S","T",
		"U","V","W","X","Y","Z");
		$myletterstring = $letter_array[mt_rand(0,51)];
		return $myletterstring;
	}
?>